﻿@model StoreScopeModel
@{
    var rawUrl = Context.Request.GetEncodedPathAndQuery();
    var stores = Model.Stores.Select(store => new SelectListItem
        {
            Text = store.Name,
            Value = Url.Action("ChangeStore", "Home", new { storeid = store.Id, returnurl = rawUrl, area = Constants.AreaAdmin }),
            Selected = store.Id.Equals(Model.StoreId)
        })
        .ToList();
}
<div class="form-group">
    <div class="col-md-12">
        <label class="control-label" style="float:left;margin-right:10px;">@Loc["Admin.Settings.StoreScope"]</label>
        @Html.DropDownList("store-scope-configuration", stores, new { onchange = "setLocation(this.value);", style = "width: auto;min-width: 300px;", @class = "form-control" })
    </div>
</div>